<%@include file="../header.jsp"%>

<!-- start content-outer -->
<div id="content-outer"><!-- start content -->
<div id="content">
<div id="page-heading">
<h1>Detail Pendaftar - ${detailPendaftar.user.idUser}</h1>
</div>
<table id="content-table" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" alt="" height="300" width="20" /></th>
<th class="topleft"></th>
<td id="tbl-border-top">&nbsp;</td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" alt="" height="300" width="20" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td><!-- start content-table-inner -->
<div id="content-table-inner">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr valign="top">
<td>
<!-- start step-holder -->

<!-- end step-holder --><!-- start id-form -->
<script>
function validatePendaftaran()
{
if (document.detailPendaftaran.judul.value=="")
  {
  alert("Judul harus diisi");
  document.detailPendaftaran.judul.focus();
  return false;
  }
else if (document.detailPendaftaran.Pembimbing1.value == 0)
  {
  alert("Pembimbing 1 harus diisi");
  document.detailPendaftaran.Pembimbing1.focus();
  return false;
  }
else if (document.detailPendaftaran.Pembimbing2.value != 0)
  {
      if(document.detailPendaftaran.pembimbingLuar.value != ""){
          alert("Pembimbing 2 hanya diijinkan 1 orang !");
          return false;
      }
  }
else if (document.detailPendaftaran.lab.value == 0)
  {
  alert("Nama lab harus diisi");
  document.detailPendaftaran.lab.focus();
  return false;
  }
}
</script>
<table id="id-form" border="0" cellpadding="0" cellspacing="0">
<form name="detailPendaftaran" action="SidangTAController?page=updateDataSidang" onSubmit="return validatePendaftaran()" method="post">
<tbody>
<tr>
<th width="130" valign="top">Nama</th>
<td width="29" valign="middle" align="center">:</td>
<td width="403">
    <input type="hidden" name="idTA" value="${detailPendaftar.idTA}"></input>
    <input type="hidden" name="jenisSidang" value="${jenisSidang}"></input>
    <input readonly class="inp-form" type="text" value="${detailPendaftar.user.namaUser}"/>
</td>
<td width="187" ></td>
</tr>
<tr>
<th valign="top">NRP</th>
<td valign="middle" align="center">:</td>
<td><input readonly class="inp-form" type="text" name="idUser" value="${detailPendaftar.user.idUser}"/></td>
<td></td>
</tr>
<tr>
  <th valign="top">Judul <font color="red">*</font></th>
  <td valign="top" align="center"><p>&nbsp;</p>
    <p>:</p></td>
  <td><textarea rows="" cols="" class="form-textarea" name="judul" value="${detailPendaftar.judul}">${detailPendaftar.judul}</textarea></td>
  <td></td>
</tr>
<tr>
  <th valign="top">Pembimbing 1 <font color="red">*</font></th>
  <td valign="middle" align="center">:</td>
  <td>
  <select name="Pembimbing1" class="styledselect_form_1">
    <option value="0">-- Pilih Nama Pembimbing --</option>
    <c:forEach items="${listPembimbing1}" var="listPembimbing1">
	<option value="${listPembimbing1.user.idUser}"
                <c:if test="${(listPembimbing1.user.idUser == detailPendaftar.pembimbing1)}">
                    selected="selected"
                </c:if>
                >${listPembimbing1.user.namaUser}</option>
    </c:forEach>
  </select>
  </td>
  <td></td>
</tr>
<tr>
  <th valign="top">Pembimbing 2 (internal)</th>
  <td valign="middle" align="center">:</td>
  <td>
    <select name="Pembimbing2" class="styledselect_form_1">
    <option value="0">-- Pilih Nama Pembimbing 2 --</option>
    <c:forEach items="${listPembimbing2}" var="listPembimbing2">
	<option value="${listPembimbing2.user.idUser}"
                <c:if test="${(listPembimbing2.user.idUser == detailPendaftar.pembimbing2)}">
                    selected="selected"
                </c:if>
                >${listPembimbing2.user.namaUser}</option>
    </c:forEach>
  </select>
  </td>
  <td></td>
</tr>
<tr>
  <th valign="top">Pembimbing 2 (eksternal)</th>
  <td valign="middle" align="center">:</td>
  <td><input class="inp-form" type="text" name="pembimbingLuar" value="${detailPendaftar.pembimbingLuar}"/></td>
  <td></td>
</tr>
<tr>
  <th valign="top">Lab <font color="red">*</font></th>
  <td valign="middle" align="center">:</td>
  <td>
  <select name="lab" class="styledselect_form_1">
    <c:forEach items="${listlab}" var="listlab">
    <option value="${listlab.namaLab}"
       <c:if test="${(listlab.namaLab == detailPendaftar.namaLab)}">
             selected="selected"
       </c:if>
    >${listlab.namaLab}</option>
</c:forEach>
</select>
  </td>
  <td></td>
</tr>
<tr>
  <th><font color="red">* = wajib diisi</font></th>
  <td valign="top">&nbsp;</td>
  <td valign="top"> <input value="" class="form-ubah" type="submit" /> 
  <td></td>
</tr>
</tbody>
</form>
</table>
<!-- end id-form --> </td>
<td><!-- start related-activities -->

<!-- end related-act-bottom --> 
<!-- end related-activities --></td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" alt="blank" height="1" width="695" /></td>
<td></td>
</tr>
</tbody>
</table>
<div class="clear"></div>
</div>
<!-- end content-table-inner -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom">&nbsp;</td>
<th class="sized bottomright"></th>
</tr>
</tbody>
</table>
<div class="clear">&nbsp;</div>
</div>
<!-- end content -->
<div class="clear">&nbsp;</div>
</div>
<!-- end content-outer -->
<div class="clear">&nbsp;</div>
<!-- start footer -->
<div id="footer"><!-- start footer-left -->
<div id="footer-left"> Admin Skin © Copyright Internet
Dreams Ltd. <a href="">www.netdreams.co.uk</a>. All
rights reserved.</div>
<!-- end footer-left -->
<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
</body></html>